<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>修改</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">
</head>
<body>
     <div class="layui-container">
        <form class="layui-form layui-clear" action="{:url('duty/position/edit',array('positionId'=>$info.id))}" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">企业名称</label>
                    <div class="layui-input-block">
                    <select name="enterpriseId" lay-filter="linkage" data-url="{:url('admin/ajax.enterprise/getChargePersonList')}" data-child="chargePerson">
                        <option></option>
                        {volist name="enterpriseList" id="item"}
                        <option value="{$key}" {if $info.enterpriseId == $key}selected{/if}>{$item}</option>
                        {/volist}
                    </select>
                    </div>
                </div>

                 <div class="layui-form-item">
                    <label class="layui-form-label">值班人</label>
                    <div class="layui-input-block">
                        <select name="chargePerson" id="chargePerson" data-value="{$info.chargePerson}"></select>
            
                    </div>
                </div>

                            <!--第2行-->
            <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">值班岗位</label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="dutyPosition" data-set="dutyPosition" type="text" placeholder="请输入值班岗位" lay-verify="required" / value="{$info.dutyPosition}">
                    </div>
            </div>

                             <!--第2行-->
            <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">值班区域</label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="dutyArea" data-set="dutyArea" type="text" placeholder="请输入值班区域" lay-verify="required" / value="{$info.dutyArea}">
                    </div>
            </div>


            
                            <!--第4行-->
                <div class="layui-form-item">
                    <label class="layui-form-label">值班方式</label>
               
                    <div  class="layui-input-block">
                       <select class="dutyWay" name="dutyWay" lay-verify="required">
                            
                            {volist name="type" id="item" }
                            <option value="{$key}" {if $info.dutyWay ==$key}selected{/if}>{$item}</option>
                            {/volist}
                        </select>
                    </div>
                
                </div>

      			 <div class="layui-form-item">
                        <label class="layui-form-label">值班日期</label>
                        <div class="layui-input-inline">
                            <input type="text" name="startDate" id="startDate"  class="layui-input" placeholder="开始日期" value="{$info.startDate}">
                        </div>
                        <div class="layui-form-mid">
                            <span>--</span>
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="endDate" id="endDate"  class="layui-input"
                            placeholder="截止日期" value="{$info.endDate}">
                        </div>
        		 </div>
    
             <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">值班内容描述</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" name="dutyDesc" data-set="dutyDesc" placeholder="请输入值班内容描述">{$info.dutyDesc}</textarea>
                </div>
            </div>
     
            <input type="hidden" name="taskId" value="2">
            <input type="hidden" name="id" value="{$info.id}"/>
  			<div class="layui-form-item">
                 	<div class="layui-input-block">
                         <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
                         <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
                    </div>
           	</div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/duty/position.js"></script>

</body>
</html>           
